package com.tanguy.user.bean.station;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by dab on 2017/11/14 0014 14:04
 */

public class CityBean implements Parcelable {

    /**
     * id : 3
     * addtime : 1508899113000
     * cityCode : 140100
     * remark : 1
     * state : 1
     * name : 太原市
     * provinceCode : 140000
     * adcode : 028
     */

    private int id;
    private long addtime;
    private String cityCode;
    private String remark;
    private int state;
    private String name;
    private String provinceCode;
    private String adcode;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public long getAddtime() {
        return addtime;
    }

    public void setAddtime(long addtime) {
        this.addtime = addtime;
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getProvinceCode() {
        return provinceCode;
    }

    public void setProvinceCode(String provinceCode) {
        this.provinceCode = provinceCode;
    }

    public String getAdcode() {
        return adcode;
    }

    public void setAdcode(String adcode) {
        this.adcode = adcode;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeLong(this.addtime);
        dest.writeString(this.cityCode);
        dest.writeString(this.remark);
        dest.writeInt(this.state);
        dest.writeString(this.name);
        dest.writeString(this.provinceCode);
        dest.writeString(this.adcode);
    }

    public CityBean() {
    }

    protected CityBean(Parcel in) {
        this.id = in.readInt();
        this.addtime = in.readLong();
        this.cityCode = in.readString();
        this.remark = in.readString();
        this.state = in.readInt();
        this.name = in.readString();
        this.provinceCode = in.readString();
        this.adcode = in.readString();
    }

    public static final Parcelable.Creator<CityBean> CREATOR = new Parcelable.Creator<CityBean>() {
        @Override
        public CityBean createFromParcel(Parcel source) {
            return new CityBean(source);
        }

        @Override
        public CityBean[] newArray(int size) {
            return new CityBean[size];
        }
    };
}
